import request from '@/config/axios'

export interface StudentVO {
  id: number
  studentName: string
  studentCode: string
  schoolId: number
  collegeId: number
  classesId: number
  sex: number
}

// 查询学生转出认领分页
export const getStudentPage = async (params) => {
  return await request.get({ url: `/cmis/student/claimable-student-page`, params })
}

// // 查询学生转出认领分页
// export const queryStudentPage = async (data) => {
//   return await request.post({ url: `/cmis/student/queryPage`, data })
// }
// 学生转出认
export const transferOutStudent = async (data) => {
  return await request.post({ url: `/cmis/student/transfer-out-student`, data })
}

// // 查询学生转出认领列表
// export const getStudentList = async (params) => {
//   return await request.get({ url: `/cmis/student/list`, params })
// }

// // 查询学生转出认领详情
// export const getStudent = async (id: number) => {
//   return await request.get({ url: `/cmis/student/get?id=` + id })
// }

// // 新增学生转出认领
// export const createStudent = async (data: StudentVO) => {
//   return await request.post({ url: `/cmis/student/create`, data })
// }

// // 修改学生转出认领
// export const updateStudent = async (data: StudentVO) => {
//   return await request.put({ url: `/cmis/student/update`, data })
// }

// // 删除学生转出认领
// export const deleteStudent = async (id: number) => {
//   return await request.delete({ url: `/cmis/student/delete?id=` + id })
// }

// 导出学生转出认领Excel
export const exportStudent = async (params) => {
  return await request.download({ url: `/cmis/student/claimable-student-export-excel`, params })
}

// 导入批量导入学生转出认领
export const importClaimableStudent = async (data) => {
  return await request.post({ url: `/cmis/student/claimable-student-import`, data })
}

// // 批量删除学生转出认领
// export const batchDeleteStudent = async (ids: Array<string>) => {
//   return await request.delete({ url: `/cmis/student/batchDelete?ids=` + ids })
// }
